<%
    var keyColumnEntity = columnEntityList[0]
    var keyType = keyColumnEntity.memberHeadData.value.normalType
    var keyName = keyColumnEntity.memberHeadData.value.name
%>
import {BaseConfigMgr} from "framework/config/BaseConfigMgr";
import {<%=className%>} from "./<%=className%>";

export class <%=className%>Mgr extends BaseConfigMgr {
    protected PushKey(key){
<% if(keyType == "string"){%>
        this._allKey.push(key)
<%}else{%>
        this._allKey.push(Number(key))
<%}%>
    }

    public AfterInit(){
<% initMethod.forEach( (method) =>{ %>
        this.<%= method.initMethodName%>()
<% }) %>
    }

    protected BeforeInit(){
        this.fileName = "<%=className%>"
    }

    public GetConfigByKey(key : <%=keyType.replace("int", "number").replace("long","number")%> | any)  : <%=className%> {
        return this._GetConfigByKey(key)
    }
<% initMethod.forEach((method)=>{%>
    <%=method.methodContent%>
<%})%>
}